﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    [SugarTable("Meter_DeviceFailureMonthView")]
    public class DeviceFailureMonthView
    {
        public int ClientId { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public string ClientName { set; get; }
        /// <summary>
        /// 报警数量
        /// </summary>
        public int FailureCount { set; get; }
        /// <summary>
        /// 报警时长
        /// </summary>
        public double DurationMin { set; get; } = 0;
        /// <summary>
        /// 报警时长
        /// </summary>
        public double ConfirmTime { set; get; } = 0;
        /// <summary>
        /// 
        /// </summary>
        public int Year { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int Month { set; get; }

        //用于Echarts
        public Int32 FailureCount1 { get; set; }
        public double DurationMin1 { get; set; }
        public double ConfirmTime1 { get; set; }

        public Int32 FailureCount2 { get; set; }
        public double DurationMin2 { get; set; }
        public double ConfirmTime2 { get; set; }

        public Int32 FailureCount3 { get; set; }
        public double DurationMin3 { get; set; }
        public double ConfirmTime3 { get; set; }

        public Int32 FailureCount4 { get; set; }
        public double DurationMin4 { get; set; }
        public double ConfirmTime4 { get; set; }

        public Int32 FailureCount5 { get; set; }
        public double DurationMin5 { get; set; }
        public double ConfirmTime5 { get; set; }

        public Int32 FailureCount6 { get; set; }
        public double DurationMin6 { get; set; }
        public double ConfirmTime6 { get; set; }

        public Int32 FailureCount7 { get; set; }
        public double DurationMin7 { get; set; }
        public double ConfirmTime7 { get; set; }

        public Int32 FailureCount8 { get; set; }
        public double DurationMin8 { get; set; }
        public double ConfirmTime8 { get; set; }

        public Int32 FailureCount9 { get; set; }
        public double DurationMin9 { get; set; }
        public double ConfirmTime9 { get; set; }

        public Int32 FailureCount10 { get; set; }
        public double DurationMin10 { get; set; }
        public double ConfirmTime10 { get; set; }

        public Int32 FailureCount11 { get; set; }
        public double DurationMin11 { get; set; }
        public double ConfirmTime11 { get; set; }

        public Int32 FailureCount12 { get; set; }
        public double DurationMin12 { get; set; }
        public double ConfirmTime12 { get; set; }
    }
}
